import { createRouter,createWebHistory,createWebHashHistory } from "vue-router";
const routes = [
    {
        path:'/',
        redirect:'/shangpin',
    },
    {
        path:'/shangpin',
        name:'shangpin',
        component:()=>import('../ELeMang/ShangPin.vue'),
    },
    {
        path:'/pingjia',
        name:'pingjia',
        component:()=>import('../ELeMang/PingJia.vue'),
    },
    {
        path:'/shangjia',
        name:'shangjia',
        component:()=>import('../ELeMang/ShangJia.vue')
    },
    {
        path:'/:pathMatch(.*)*',
        component:()=>import('../ELeMang/404.vue')
    }
];
const router = createRouter({
    history:createWebHistory(),
    routes,
});
export default router;